<%@include file="menu/util.jsp" %>
<%@page contentType="application/xml; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="pointer" value="${requestScope.pointer}" />
<c:set var="dimensionalCuts" value="${requestScope.dimensionalCuts}" />
<c:set var="rootDimensionalCuts" value="${requestScope.rootDimensionalCuts}" />
<c:set var="cutMembers" value="${requestScope.cutMembers}"/>
<c:set var="dataComparators" value="${requestScope.dataComparators}"/>
<c:set var="comparators" value="${requestScope.comparators}"/>
<c:set var="dimensionalCutDates" value="${requestScope.dimensionalCutDates}"/>
<c:set var="dimensionalCutDatesData" value="${requestScope.dimensionalCutDatesData}"/>
<c:set var="pointerScores" value="${requestScope.pointerScores}"/>
<c:set var="rangeDates" value="${requestScope.rangeDates}"/>



<xml>
    <c:forEach var="dimensionalCut" items="${rootDimensionalCuts}">
        <prueba var="${dimensionalCut}">
            <c:forEach var="date" items="${dimensionalCutDates[dimensionalCut]}">
                <fmt:formatDate var="dateDisplay" type="Date" value="${date}" />
                <prueba2 var="${date}">
                    <c:set var="exist" value="${dimensionalCutDatesData[dimensionalCut][date]}" />

                    <c:if test="${exist != null && !empty exist }">
                        <register date='${dateDisplay}'>
                            <c:forEach var="comparatorDimensionalCut" items="${dimensionalCutDatesData[dimensionalCut][date]}">
                                <c:if test="${comparatorDimensionalCut != null}">
                                    <data type="${comparatorDimensionalCut.comparator.comparation.type}" value="${comparatorDimensionalCut.register}" unit="$" postition="PREFIX"></data>
                                </c:if>
                            </c:forEach>
                        </register>
                    </c:if>
                </prueba2>
            </c:forEach>
        </prueba>
    </c:forEach>

    <scoreInfo unit="${pointer.unit}" ></scoreInfo>

</xml>

